﻿using SisVet.ProprietariosModelo;
using SisVet.VendasAvulsas;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SisVet
{
    public partial class frmPrincipal : Form
    {
        public frmPrincipal()
        {
            InitializeComponent();
        }

        private void btnServicos_Click(object sender, EventArgs e)
        {
            //using (frmServicos telaServico = new frmServicos())
            //{
               // telaServico.ShowDialog();
            frmServicos telaServico = new frmServicos();
            telaServico.MdiParent = this;
            telaServico.Show();
            //telaServico.MdiParent = frmPrincipal;
            //}
        }

        private void btnVendasAvulsas_Click(object sender, EventArgs e)
        {
         //  using (frmVendasAvulsas telaVendasAvulsas = new frmVendasAvulsas()) 
         //  {
         //      telaVendasAvulsas.ShowDialog();
         //  }
            frmVendasAvulsas telaVendaAvulsa = new frmVendasAvulsas();
            telaVendaAvulsa.MdiParent = this;
            telaVendaAvulsa.Show();
            
        }

        private void btnProprietarios_Click(object sender, EventArgs e)
        {
          /*  using (frmProprietarios telaProprietarios = new frmProprietarios())
            {
                telaProprietarios.ShowDialog();
            } */
            frmProprietarios telaProprietario = new frmProprietarios();
            telaProprietario.MdiParent = this;
            telaProprietario.Show();
            
        }
    }
}
